import { http } from '@/utils/http';
import { Love } from '@/service/types//love';

/** 获取约会列表 */
export const GetDatingInfoPage = (query: {
  datingType?: string;
  startTime?: string;
  keyword?: string;
  location?: string;
  payMoney?: string;
}, data) => {
  return http.post<IResDataInfo<Love.DatingInfoPageItem>>('/dating-info/page', query, data)
}

/** 获取约会详情 */
export const GetDatingInfo = (data) => {
  return http.get<Love.LoveDetail>('/dating-info', data)
}

/** 新增约会 */
export const AddDatingInfo = (data) => {
  return http.post<any>('/dating-info', data)
}

/** 应邀 */
export const DatingRegistrationInfo = (data) => {
  return http.post<any>('/dating-registration-info', data)
}

/** 应邀(微信支付) */
export const DatingRegistrationInfoDatingWechat = (data) => {
  return http.post<any>('/dating-registration-info/dating_wechat', data)
}

/** 发布者确认应邀 */
export const SureDatingApi = (data) => {
  return http.put<any>('/dating-registration-info/sure-dating', data)
}
